common_template = {
    # 垂直行合并条件
    "vertical": {
        "height_ratio": 0.8,  # min_height / max_height
        "height_gap_ratio": 0.3,  # height_gap / min_height
        "horizontal_overlap_ratio": 0.8,  # overlap_width / min_width
    },
    # 水平行合并条件
    "horizontal": {
        "width_gap_ratio": 0.5,  # 在衡量水平两行是否合并的时候, 宽度重合比例
        "center_height_ratio": 0.3,  # center_height_gap / min_height
    }
}

# 自定义配置
license_template = {
    "custom_conf": "",
    "common_template": {
        "merge_width_ratio": 0.7,  # merge_width / image_width
    }
}
